<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Reference</title>
<link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../boost_dll.html" title="Chapter 11. Boost.DLL">
<link rel="prev" href="missuses.html" title="Missuses">
<link rel="next" href="../doxygen/shared_library_reference/alias_8hpp_1a999436ae51109c6cfdd49fa776c9ca2e.html" title="Macro BOOST_DLL_FORCE_ALIAS_INSTANTIATION">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../boost.png"></td>
<td align="center"><a href="../../../index.html">Home</a></td>
<td align="center"><a href="../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="missuses.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../boost_dll.html"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../doxygen/shared_library_reference/alias_8hpp_1a999436ae51109c6cfdd49fa776c9ca2e.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="boost_dll.reference"></a><a class="link" href="reference.html" title="Reference">Reference</a>
</h2></div></div></div>
<div class="toc"><dl class="toc">
<dt><span class="section"><a href="reference.html#shared_library_reference">Shared Library Reference</a></span></dt>
<dt><span class="section"><a href="reference.html#shared_library_refcountable_reference">Shared Library Refcountable Reference</a></span></dt>
</dl></div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="shared_library_reference"></a>Shared Library Reference</h3></div></div></div>
<div class="toc"><dl class="toc">
<dt><span class="section"><a href="reference.html#doxygen.shared_library_reference.alias_8hpp">Header &lt;boost/dll/alias.hpp&gt;</a></span></dt>
<dt><span class="section"><a href="reference.html#doxygen.shared_library_reference.config_8hpp">Header &lt;boost/dll/config.hpp&gt;</a></span></dt>
<dt><span class="section"><a href="reference.html#doxygen.shared_library_reference.library__info_8hpp">Header &lt;boost/dll/library_info.hpp&gt;</a></span></dt>
<dt><span class="section"><a href="reference.html#doxygen.shared_library_reference.runtime__symbol__info_8hpp">Header &lt;boost/dll/runtime_symbol_info.hpp&gt;</a></span></dt>
<dt><span class="section"><a href="reference.html#doxygen.shared_library_reference.shared__library_8hpp">Header &lt;boost/dll/shared_library.hpp&gt;</a></span></dt>
<dt><span class="section"><a href="reference.html#doxygen.shared_library_reference.shared__library__load__mode_8hpp">Header &lt;boost/dll/shared_library_load_mode.hpp&gt;</a></span></dt>
<dt><span class="section"><a href="reference.html#doxygen.shared_library_reference.smart__library_8hpp">Header &lt;boost/dll/smart_library.hpp&gt;</a></span></dt>
</dl></div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="doxygen.shared_library_reference.alias_8hpp"></a>Header &lt;<a href="http://www.boost.org/doc/libs/1_87_0/boost/dll/alias.hpp" target="_top">boost/dll/alias.hpp</a>&gt;</h4></div></div></div>
<p>Includes alias methods and macro. You can include this header or <a class="link" href="reference.html#doxygen.shared_library_reference.shared__library_8hpp" title="Header &lt;boost/dll/shared_library.hpp&gt;">boost/dll/shared_library.hpp</a> to reduce dependencies in case you do not use the refcountable functions. </p>
<pre class="synopsis">

<a class="link" href="../doxygen/shared_library_reference/alias_8hpp_1a999436ae51109c6cfdd49fa776c9ca2e.html" title="Macro BOOST_DLL_FORCE_ALIAS_INSTANTIATION">BOOST_DLL_FORCE_ALIAS_INSTANTIATION</a>
<a class="link" href="../doxygen/shared_library_reference/alias_8hpp_1a080c15c55a3a372193e158156fc77f6a.html" title="Macro BOOST_DLL_FORCE_NO_WEAK_EXPORTS">BOOST_DLL_FORCE_NO_WEAK_EXPORTS</a>
<a class="link" href="../doxygen/shared_library_reference/alias_8hpp_1a18e217f7c26bce9cb08c64f41fbd6178.html" title="Macro BOOST_DLL_SELECTANY">BOOST_DLL_SELECTANY</a>
<a class="link" href="../doxygen/shared_library_reference/alias_8hpp_1a77c8964c8b614e76a662bb500babac74.html" title="Macro BOOST_DLL_SECTION">BOOST_DLL_SECTION</a>(SectionName, Permissions)
<a class="link" href="../doxygen/shared_library_reference/alias_8hpp_1ad9f8b1de81ae3b24cd938c7bacb27eef.html" title="Macro BOOST_DLL_ALIAS">BOOST_DLL_ALIAS</a>(FunctionOrVar, AliasName)
<a class="link" href="../doxygen/shared_library_reference/alias_8hpp_1af10683bc3be11abe1957b186fcec2bd2.html" title="Macro BOOST_DLL_ALIAS_SECTIONED">BOOST_DLL_ALIAS_SECTIONED</a>(FunctionOrVar, AliasName, SectionName)
<a class="link" href="../doxygen/shared_library_reference/alias_8hpp_1af6db740861079eab68b0629d98d74cd8.html" title="Macro BOOST_DLL_AUTO_ALIAS">BOOST_DLL_AUTO_ALIAS</a>(FunctionOrVar)</pre>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="doxygen.shared_library_reference.config_8hpp"></a>Header &lt;<a href="http://www.boost.org/doc/libs/1_87_0/boost/dll/config.hpp" target="_top">boost/dll/config.hpp</a>&gt;</h4></div></div></div>
<p>Imports filesystem, error_code, errc, system_error, make_error_code from Boost or C++17 into <code class="computeroutput">boost::dll::fs</code> namespace. </p>
<pre class="synopsis">

<a class="link" href="../doxygen/shared_library_reference/config_8hpp_1a1384f665ec72490413602bcf2b9379e5.html" title="Macro BOOST_DLL_USE_STD_FS">BOOST_DLL_USE_STD_FS</a>
<a class="link" href="../doxygen/shared_library_reference/config_8hpp_1a38dfec27290aea1e4cb5742fefdea045.html" title="Macro BOOST_DLL_USE_BOOST_SHARED_PTR">BOOST_DLL_USE_BOOST_SHARED_PTR</a></pre>
<pre class="synopsis"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span>
  <span class="keyword">namespace</span> <span class="identifier">dll</span> <span class="special">{</span>
    <span class="keyword">namespace</span> <span class="identifier">fs</span> <span class="special">{</span>
      <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">conditional_t</span><span class="special">&lt;</span> <span class="identifier">BOOST_DLL_USE_STD_FS</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">filesystem</span><span class="special">::</span><span class="identifier">path</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">filesystem</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&gt;</span> <a class="link" href="../doxygen/shared_library_reference/config_8hpp_1a939779dd5b1ae0a53b2a7bb25c743340.html" title="Type definition path"><span class="identifier">path</span></a><span class="special">;</span>
      <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">conditional_t</span><span class="special">&lt;</span> <span class="identifier">BOOST_DLL_USE_STD_FS</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">error_code</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">system</span><span class="special">::</span><span class="identifier">error_code</span> <span class="special">&gt;</span> <a class="link" href="../doxygen/shared_library_reference/config_8hpp_1ac4ea858513fc38c6eff42301364fa4b8.html" title="Type definition error_code"><span class="identifier">error_code</span></a><span class="special">;</span>
      <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">conditional_t</span><span class="special">&lt;</span> <span class="identifier">BOOST_DLL_USE_STD_FS</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">system_error</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">system</span><span class="special">::</span><span class="identifier">system_error</span> <span class="special">&gt;</span> <a class="link" href="../doxygen/shared_library_reference/config_8hpp_1a3d99fa00649a98c9ad8a43f80882e2be.html" title="Type definition system_error"><span class="identifier">system_error</span></a><span class="special">;</span>
    <span class="special">}</span>
  <span class="special">}</span>
<span class="special">}</span></pre>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="doxygen.shared_library_reference.library__info_8hpp"></a>Header &lt;<a href="http://www.boost.org/doc/libs/1_87_0/boost/dll/library_info.hpp" target="_top">boost/dll/library_info.hpp</a>&gt;</h4></div></div></div>
<p>Contains only the <a class="link" href="../doxygen/shared_library_reference/classboost_1_1dll_1_1library__info.html" title="Class library_info">boost::dll::library_info</a> class that is capable of extracting different information from binaries. </p>
<pre class="synopsis"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span>
  <span class="keyword">namespace</span> <span class="identifier">dll</span> <span class="special">{</span>
    <span class="keyword">class</span> <a class="link" href="../doxygen/shared_library_reference/classboost_1_1dll_1_1library__info.html" title="Class library_info">library_info</a><span class="special">;</span>
  <span class="special">}</span>
<span class="special">}</span></pre>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="doxygen.shared_library_reference.runtime__symbol__info_8hpp"></a>Header &lt;<a href="http://www.boost.org/doc/libs/1_87_0/boost/dll/runtime_symbol_info.hpp" target="_top">boost/dll/runtime_symbol_info.hpp</a>&gt;</h4></div></div></div>
<p>Provides methods for getting acceptable by <a class="link" href="../doxygen/shared_library_reference/classboost_1_1dll_1_1shared__library.html" title="Class shared_library">boost::dll::shared_library</a> location of symbol, source line or program. </p>
<pre class="synopsis"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span>
  <span class="keyword">namespace</span> <span class="identifier">dll</span> <span class="special">{</span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> 
      <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">path</span> <a class="link" href="../doxygen/shared_library_reference/runtime__symbol__info_8hpp_1ab16edf0e9013a0d019ff1daf40824afc.html" title="Function template symbol_location_ptr"><span class="identifier">symbol_location_ptr</span></a><span class="special">(</span><span class="identifier">T</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">error_code</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> 
      <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">path</span> <a name="doxygen.shared_library_reference.runtime__symbol__info_8hpp_1a3134c47d201067dcb2e17425d2c7a08e"></a><span class="identifier">symbol_location_ptr</span><span class="special">(</span><span class="identifier">T</span> ptr_to_symbol<span class="special">)</span><span class="special">;</span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> 
      <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">path</span> <a class="link" href="../doxygen/shared_library_reference/runtime__symbol__info_8hpp_1a9ff31447ff4ccf4147d5d8cbbd134652.html" title="Function template symbol_location"><span class="identifier">symbol_location</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">error_code</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> 
      <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">path</span> <a name="doxygen.shared_library_reference.runtime__symbol__info_8hpp_1a93277af09c4a69c94257f28e12fce0e6"></a><span class="identifier">symbol_location</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span> symbol<span class="special">)</span><span class="special">;</span>
    <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">path</span> <a class="link" href="../doxygen/shared_library_reference/runtime__symbol__info_8hpp_1a276250d0518256cf5f180a1cfeee1a6c.html" title="Function this_line_location"><span class="identifier">this_line_location</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">error_code</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
    <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">path</span> <a name="doxygen.shared_library_reference.runtime__symbol__info_8hpp_1a84176539bb46073e9894c34ee6eff0bd"></a><span class="identifier">this_line_location</span><span class="special">(</span><span class="special">)</span><span class="special">;</span>
    <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">path</span> <a class="link" href="../doxygen/shared_library_reference/runtime__symbol__info_8hpp_1ad4f62eae484acfa53de57045fd18dde7.html" title="Function program_location"><span class="identifier">program_location</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">error_code</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
    <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">path</span> <a name="doxygen.shared_library_reference.runtime__symbol__info_8hpp_1a73d84ce487df7a966cd8a05c601f9b4c"></a><span class="identifier">program_location</span><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="special">}</span>
<span class="special">}</span></pre>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="doxygen.shared_library_reference.shared__library_8hpp"></a>Header &lt;<a href="http://www.boost.org/doc/libs/1_87_0/boost/dll/shared_library.hpp" target="_top">boost/dll/shared_library.hpp</a>&gt;</h4></div></div></div>
<p>Contains the <a class="link" href="../doxygen/shared_library_reference/classboost_1_1dll_1_1shared__library.html" title="Class shared_library">boost::dll::shared_library</a> class, core class for all the DLL/DSO operations. </p>
<pre class="synopsis"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span>
  <span class="keyword">namespace</span> <span class="identifier">dll</span> <span class="special">{</span>
    <span class="keyword">class</span> <a class="link" href="../doxygen/shared_library_reference/classboost_1_1dll_1_1shared__library.html" title="Class shared_library">shared_library</a><span class="special">;</span>

    <span class="comment">// Very fast equality check that compares the actual DLL/DSO objects. Throws nothing. </span>
    <span class="keyword">bool</span> <a name="doxygen.shared_library_reference.shared__library_8hpp_1a6d51f221b149ece5780a5c09196e0390"></a><span class="keyword">operator</span><span class="special">==</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="../doxygen/shared_library_reference/classboost_1_1dll_1_1shared__library.html" title="Class shared_library">shared_library</a> <span class="special">&amp;</span> lhs<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="../doxygen/shared_library_reference/classboost_1_1dll_1_1shared__library.html" title="Class shared_library">shared_library</a> <span class="special">&amp;</span> rhs<span class="special">)</span><span class="special">;</span>

    <span class="comment">// Very fast inequality check that compares the actual DLL/DSO objects. Throws nothing. </span>
    <span class="keyword">bool</span> <a name="doxygen.shared_library_reference.shared__library_8hpp_1ac25b0987f5391b3328f8e79403fca6cf"></a><span class="keyword">operator</span><span class="special">!=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="../doxygen/shared_library_reference/classboost_1_1dll_1_1shared__library.html" title="Class shared_library">shared_library</a> <span class="special">&amp;</span> lhs<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="../doxygen/shared_library_reference/classboost_1_1dll_1_1shared__library.html" title="Class shared_library">shared_library</a> <span class="special">&amp;</span> rhs<span class="special">)</span><span class="special">;</span>

    <span class="comment">// Compare the actual DLL/DSO objects without any guarantee to be stable between runs. Throws nothing. </span>
    <span class="keyword">bool</span> <a name="doxygen.shared_library_reference.shared__library_8hpp_1a4852b13e9eebf480c7bcdc049138db94"></a><span class="keyword">operator</span><span class="special">&lt;</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="../doxygen/shared_library_reference/classboost_1_1dll_1_1shared__library.html" title="Class shared_library">shared_library</a> <span class="special">&amp;</span> lhs<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="../doxygen/shared_library_reference/classboost_1_1dll_1_1shared__library.html" title="Class shared_library">shared_library</a> <span class="special">&amp;</span> rhs<span class="special">)</span><span class="special">;</span>

    <span class="comment">// Swaps two shared libraries. Does not invalidate symbols and functions loaded from libraries. Throws nothing. </span>
    <span class="keyword">void</span> <a name="doxygen.shared_library_reference.shared__library_8hpp_1a2c89f15322b6b790942047e5a439a543"></a><span class="identifier">swap</span><span class="special">(</span><a class="link" href="../doxygen/shared_library_reference/classboost_1_1dll_1_1shared__library.html" title="Class shared_library">shared_library</a> <span class="special">&amp;</span> lhs<span class="special">,</span> <a class="link" href="../doxygen/shared_library_reference/classboost_1_1dll_1_1shared__library.html" title="Class shared_library">shared_library</a> <span class="special">&amp;</span> rhs<span class="special">)</span><span class="special">;</span>
  <span class="special">}</span>
<span class="special">}</span></pre>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="doxygen.shared_library_reference.shared__library__load__mode_8hpp"></a>Header &lt;<a href="http://www.boost.org/doc/libs/1_87_0/boost/dll/shared_library_load_mode.hpp" target="_top">boost/dll/shared_library_load_mode.hpp</a>&gt;</h4></div></div></div>
<p>Contains only the <a class="link" href="../doxygen/shared_library_reference/shared__library__load__mode_8hpp_1a7aead736a07eaf25623ad7bfa1f0ee2d.html" title="Type type">boost::dll::load_mode::type</a> enum and operators related to it. </p>
<pre class="synopsis"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span>
  <span class="keyword">namespace</span> <span class="identifier">dll</span> <span class="special">{</span>
    <span class="keyword">namespace</span> <span class="identifier">load_mode</span> <span class="special">{</span>
      <span class="keyword">enum</span> <a class="link" href="../doxygen/shared_library_reference/shared__library__load__mode_8hpp_1a7aead736a07eaf25623ad7bfa1f0ee2d.html" title="Type type">type</a><span class="special">;</span>

      <span class="comment">// Free operators for <a class="link" href="../doxygen/shared_library_reference/shared__library__load__mode_8hpp_1a7aead736a07eaf25623ad7bfa1f0ee2d.html" title="Type type">load_mode::type</a> flag manipulation. </span>
      <span class="identifier">BOOST_CONSTEXPR</span> <span class="identifier">type</span> <a name="doxygen.shared_library_reference.shared__library__load__mode_8hpp_1ad8718ad1ea90d5c85cd254896975128c"></a><span class="keyword">operator</span><span class="special">|</span><span class="special">(</span><span class="identifier">type</span> left<span class="special">,</span> <span class="identifier">type</span> right<span class="special">)</span><span class="special">;</span>
      <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">type</span> <span class="special">&amp;</span> <a name="doxygen.shared_library_reference.shared__library__load__mode_8hpp_1a26fe915f1c1daaadf1185ca7f3ab2d68"></a><span class="keyword">operator</span><span class="special">|=</span><span class="special">(</span><span class="identifier">type</span> <span class="special">&amp;</span> left<span class="special">,</span> <span class="identifier">type</span> right<span class="special">)</span><span class="special">;</span>
      <span class="identifier">BOOST_CONSTEXPR</span> <span class="identifier">type</span> <a name="doxygen.shared_library_reference.shared__library__load__mode_8hpp_1ae536793bb0aaa0eaaf0fcb2fbf04dc94"></a><span class="keyword">operator</span><span class="special">&amp;</span><span class="special">(</span><span class="identifier">type</span> left<span class="special">,</span> <span class="identifier">type</span> right<span class="special">)</span><span class="special">;</span>
      <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">type</span> <span class="special">&amp;</span> <a name="doxygen.shared_library_reference.shared__library__load__mode_8hpp_1aeea0f18865f0a3a222044b571aa3658d"></a><span class="keyword">operator</span><span class="special">&amp;=</span><span class="special">(</span><span class="identifier">type</span> <span class="special">&amp;</span> left<span class="special">,</span> <span class="identifier">type</span> right<span class="special">)</span><span class="special">;</span>
      <span class="identifier">BOOST_CONSTEXPR</span> <span class="identifier">type</span> <a name="doxygen.shared_library_reference.shared__library__load__mode_8hpp_1a6e6b773663b721f134057d150a90fcaa"></a><span class="keyword">operator</span><span class="special">^</span><span class="special">(</span><span class="identifier">type</span> left<span class="special">,</span> <span class="identifier">type</span> right<span class="special">)</span><span class="special">;</span>
      <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">type</span> <span class="special">&amp;</span> <a name="doxygen.shared_library_reference.shared__library__load__mode_8hpp_1a25517f970e6e279eafae3c33f97ae911"></a><span class="keyword">operator</span><span class="special">^=</span><span class="special">(</span><span class="identifier">type</span> <span class="special">&amp;</span> left<span class="special">,</span> <span class="identifier">type</span> right<span class="special">)</span><span class="special">;</span>
      <span class="identifier">BOOST_CONSTEXPR</span> <span class="identifier">type</span> <a name="doxygen.shared_library_reference.shared__library__load__mode_8hpp_1ab9df356f99f3fcf1e9ec42a4a1db6724"></a><span class="keyword">operator</span><span class="special">~</span><span class="special">(</span><span class="identifier">type</span> left<span class="special">)</span><span class="special">;</span>
    <span class="special">}</span>
  <span class="special">}</span>
<span class="special">}</span></pre>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="doxygen.shared_library_reference.smart__library_8hpp"></a>Header &lt;<a href="http://www.boost.org/doc/libs/1_87_0/boost/dll/smart_library.hpp" target="_top">boost/dll/smart_library.hpp</a>&gt;</h4></div></div></div>
<p>Contains the <a class="link" href="../doxygen/shared_library_reference/classboost_1_1dll_1_1experimental_1_1smart__library.html" title="Class smart_library">boost::dll::experimental::smart_library</a> class for loading mangled symbols. </p>
<div class="warning"><table border="0" summary="Warning">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Warning]" src="../../../doc/src/images/warning.png"></td>
<th align="left">Warning</th>
</tr>
<tr><td align="left" valign="top"><p>Experimental feature that relies on an incomplete implementation of platform specific C++ mangling. In case of an issue provide a PR with a fix and tests to <a href="https://github.com/boostorg/dll" target="_top">https://github.com/boostorg/dll</a> . <a class="link" href="reference.html#doxygen.shared_library_reference.smart__library_8hpp" title="Header &lt;boost/dll/smart_library.hpp&gt;">boost/dll/smart_library.hpp</a> is not included in boost/dll.hpp </p></td></tr>
</table></div>
<p>
</p>
<pre class="synopsis"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span>
  <span class="keyword">namespace</span> <span class="identifier">dll</span> <span class="special">{</span>
    <span class="keyword">namespace</span> <span class="identifier">experimental</span> <span class="special">{</span>
      <span class="keyword">class</span> <a class="link" href="../doxygen/shared_library_reference/classboost_1_1dll_1_1experimental_1_1smart__library.html" title="Class smart_library">smart_library</a><span class="special">;</span>

      <span class="comment">// Very fast equality check that compares the actual DLL/DSO objects. Throws nothing. </span>
      <span class="keyword">bool</span> <a name="doxygen.shared_library_reference.smart__library_8hpp_1a9924c849cbdcd33da5c9cfdcfdc0e261"></a><span class="keyword">operator</span><span class="special">==</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="../doxygen/shared_library_reference/classboost_1_1dll_1_1experimental_1_1smart__library.html" title="Class smart_library">smart_library</a> <span class="special">&amp;</span> lhs<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="../doxygen/shared_library_reference/classboost_1_1dll_1_1experimental_1_1smart__library.html" title="Class smart_library">smart_library</a> <span class="special">&amp;</span> rhs<span class="special">)</span><span class="special">;</span>

      <span class="comment">// Very fast inequality check that compares the actual DLL/DSO objects. Throws nothing. </span>
      <span class="keyword">bool</span> <a name="doxygen.shared_library_reference.smart__library_8hpp_1a776481eedb6f93b7fa73746aa4ef1e3a"></a><span class="keyword">operator</span><span class="special">!=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="../doxygen/shared_library_reference/classboost_1_1dll_1_1experimental_1_1smart__library.html" title="Class smart_library">smart_library</a> <span class="special">&amp;</span> lhs<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="../doxygen/shared_library_reference/classboost_1_1dll_1_1experimental_1_1smart__library.html" title="Class smart_library">smart_library</a> <span class="special">&amp;</span> rhs<span class="special">)</span><span class="special">;</span>

      <span class="comment">// Compare the actual DLL/DSO objects without any guarantee to be stable between runs. Throws nothing. </span>
      <span class="keyword">bool</span> <a name="doxygen.shared_library_reference.smart__library_8hpp_1abd7cc7722efcd2bca9a779534348e7d5"></a><span class="keyword">operator</span><span class="special">&lt;</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="../doxygen/shared_library_reference/classboost_1_1dll_1_1experimental_1_1smart__library.html" title="Class smart_library">smart_library</a> <span class="special">&amp;</span> lhs<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="../doxygen/shared_library_reference/classboost_1_1dll_1_1experimental_1_1smart__library.html" title="Class smart_library">smart_library</a> <span class="special">&amp;</span> rhs<span class="special">)</span><span class="special">;</span>

      <span class="comment">// Swaps two shared libraries. Does not invalidate symbols and functions loaded from libraries. Throws nothing. </span>
      <span class="keyword">void</span> <a name="doxygen.shared_library_reference.smart__library_8hpp_1a8ab62190dcba5faa608f9c8a260439f9"></a><span class="identifier">swap</span><span class="special">(</span><a class="link" href="../doxygen/shared_library_reference/classboost_1_1dll_1_1experimental_1_1smart__library.html" title="Class smart_library">smart_library</a> <span class="special">&amp;</span> lhs<span class="special">,</span> <a class="link" href="../doxygen/shared_library_reference/classboost_1_1dll_1_1experimental_1_1smart__library.html" title="Class smart_library">smart_library</a> <span class="special">&amp;</span> rhs<span class="special">)</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> T2<span class="special">&gt;</span> 
        <span class="keyword">void</span> <a class="link" href="../doxygen/shared_library_reference/smart__library_8hpp_1aca01518fa6ec64ce2f8f56ad2a232732.html" title="Function template get"><span class="identifier">get</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="../doxygen/shared_library_reference/classboost_1_1dll_1_1experimental_1_1smart__library.html" title="Class smart_library">smart_library</a> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> 
        <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">is_object</span><span class="special">&lt;</span> <span class="identifier">T</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="identifier">T</span> <span class="special">&amp;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> 
        <a name="doxygen.shared_library_reference.smart__library_8hpp_1a115b3461b3f6029ceb2b98315ab16af7"></a><span class="identifier">get</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="../doxygen/shared_library_reference/classboost_1_1dll_1_1experimental_1_1smart__library.html" title="Class smart_library">smart_library</a> <span class="special">&amp;</span> sm<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span> name<span class="special">)</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> 
        <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">is_function</span><span class="special">&lt;</span> <span class="identifier">T</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="identifier">T</span> <span class="special">&amp;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> 
        <a name="doxygen.shared_library_reference.smart__library_8hpp_1a027420dd4adc45204e51eb69b21c435a"></a><span class="identifier">get</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="../doxygen/shared_library_reference/classboost_1_1dll_1_1experimental_1_1smart__library.html" title="Class smart_library">smart_library</a> <span class="special">&amp;</span> sm<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span> name<span class="special">)</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Class<span class="special">,</span> <span class="keyword">typename</span> Signature<span class="special">&gt;</span> 
        <span class="emphasis"><em><span class="identifier">unspecified</span></em></span> <a class="link" href="../doxygen/shared_library_reference/smart__library_8hpp_1a8e9c15aa4edf4bd334aed77f1f4c40b7.html" title="Function template get"><span class="identifier">get</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="../doxygen/shared_library_reference/classboost_1_1dll_1_1experimental_1_1smart__library.html" title="Class smart_library">smart_library</a> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
    <span class="special">}</span>
  <span class="special">}</span>
<span class="special">}</span></pre>
</div>
</div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="shared_library_refcountable_reference"></a>Shared Library Refcountable Reference</h3></div></div></div>
<div class="toc"><dl class="toc">
<dt><span class="section"><a href="reference.html#doxygen.shared_library_refcountable_reference.import_8hpp">Header &lt;boost/dll/import.hpp&gt;</a></span></dt>
<dt><span class="section"><a href="reference.html#doxygen.shared_library_refcountable_reference.import__class_8hpp">Header &lt;boost/dll/import_class.hpp&gt;</a></span></dt>
<dt><span class="section"><a href="reference.html#doxygen.shared_library_refcountable_reference.import__mangled_8hpp">Header &lt;boost/dll/import_mangled.hpp&gt;</a></span></dt>
</dl></div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="doxygen.shared_library_refcountable_reference.import_8hpp"></a>Header &lt;<a href="http://www.boost.org/doc/libs/1_87_0/boost/dll/import.hpp" target="_top">boost/dll/import.hpp</a>&gt;</h4></div></div></div>
<p>Contains all the boost::dll::import* reference counting functions that hold a shared pointer to the instance of boost::dll::shared_library. </p>
<pre class="synopsis"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span>
  <span class="keyword">namespace</span> <span class="identifier">dll</span> <span class="special">{</span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> 
      <span class="identifier">result_type</span> <a class="link" href="../doxygen/shared_library_refcountable_reference/import_8hpp_1aef427f71fecdb92981fe5a509a917801.html" title="Function template import_symbol"><span class="identifier">import_symbol</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span> <span class="special">*</span><span class="special">,</span> 
                                <span class="identifier">load_mode</span><span class="special">::</span><span class="identifier">type</span> <span class="special">=</span> <span class="identifier">load_mode</span><span class="special">::</span><span class="identifier">default_mode</span><span class="special">)</span><span class="special">;</span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> 
      <span class="identifier">result_type</span> <a name="doxygen.shared_library_refcountable_reference.import_8hpp_1a887e84665c887a6141f26dd69e3c9008"></a><span class="identifier">import_symbol</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&amp;</span> lib<span class="special">,</span> 
                                <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span> name<span class="special">,</span> 
                                <span class="identifier">load_mode</span><span class="special">::</span><span class="identifier">type</span> mode <span class="special">=</span> <span class="identifier">load_mode</span><span class="special">::</span><span class="identifier">default_mode</span><span class="special">)</span><span class="special">;</span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> 
      <span class="identifier">result_type</span> <a name="doxygen.shared_library_refcountable_reference.import_8hpp_1adb19ace365328f627ed41913cf612d8c"></a><span class="identifier">import_symbol</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">shared_library</span> <span class="special">&amp;</span> lib<span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span> <span class="special">*</span> name<span class="special">)</span><span class="special">;</span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> 
      <span class="identifier">result_type</span> <a name="doxygen.shared_library_refcountable_reference.import_8hpp_1aaca5780bdc4c943a9b2e90d8d8e981df"></a><span class="identifier">import_symbol</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">shared_library</span> <span class="special">&amp;</span> lib<span class="special">,</span> 
                                <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span> name<span class="special">)</span><span class="special">;</span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> 
      <span class="identifier">result_type</span> <a name="doxygen.shared_library_refcountable_reference.import_8hpp_1a668825d367bcbfa9071ce0f751853265"></a><span class="identifier">import_symbol</span><span class="special">(</span><span class="identifier">shared_library</span> <span class="special">&amp;&amp;</span> lib<span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span> <span class="special">*</span> name<span class="special">)</span><span class="special">;</span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> 
      <span class="identifier">result_type</span> <a name="doxygen.shared_library_refcountable_reference.import_8hpp_1a75be938f58ba3517ab2a8c123465c3d0"></a><span class="identifier">import_symbol</span><span class="special">(</span><span class="identifier">shared_library</span> <span class="special">&amp;&amp;</span> lib<span class="special">,</span> 
                                <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span> name<span class="special">)</span><span class="special">;</span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> 
      <span class="identifier">result_type</span> <a class="link" href="../doxygen/shared_library_refcountable_reference/import_8hpp_1a7ea7e10c20f83517dcc0acb6a64efa11.html" title="Function template import_alias"><span class="identifier">import_alias</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span> <span class="special">*</span><span class="special">,</span> 
                               <span class="identifier">load_mode</span><span class="special">::</span><span class="identifier">type</span> <span class="special">=</span> <span class="identifier">load_mode</span><span class="special">::</span><span class="identifier">default_mode</span><span class="special">)</span><span class="special">;</span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> 
      <span class="identifier">result_type</span> <a name="doxygen.shared_library_refcountable_reference.import_8hpp_1ae8a6c89c0a0437ecdca26b3a3b999008"></a><span class="identifier">import_alias</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&amp;</span> lib<span class="special">,</span> 
                               <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span> name<span class="special">,</span> 
                               <span class="identifier">load_mode</span><span class="special">::</span><span class="identifier">type</span> mode <span class="special">=</span> <span class="identifier">load_mode</span><span class="special">::</span><span class="identifier">default_mode</span><span class="special">)</span><span class="special">;</span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> 
      <span class="identifier">result_type</span> <a name="doxygen.shared_library_refcountable_reference.import_8hpp_1a8e46480af32692097dc61b60a80698cd"></a><span class="identifier">import_alias</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">shared_library</span> <span class="special">&amp;</span> lib<span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span> <span class="special">*</span> name<span class="special">)</span><span class="special">;</span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> 
      <span class="identifier">result_type</span> <a name="doxygen.shared_library_refcountable_reference.import_8hpp_1a0c2abcf29ec25cea1c584865d4923a82"></a><span class="identifier">import_alias</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">shared_library</span> <span class="special">&amp;</span> lib<span class="special">,</span> 
                               <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span> name<span class="special">)</span><span class="special">;</span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> 
      <span class="identifier">result_type</span> <a name="doxygen.shared_library_refcountable_reference.import_8hpp_1aae25aca8899038a02fd506609d554967"></a><span class="identifier">import_alias</span><span class="special">(</span><span class="identifier">shared_library</span> <span class="special">&amp;&amp;</span> lib<span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span> <span class="special">*</span> name<span class="special">)</span><span class="special">;</span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> 
      <span class="identifier">result_type</span> <a name="doxygen.shared_library_refcountable_reference.import_8hpp_1acf81ea55ce91c693e12950a67f9128dc"></a><span class="identifier">import_alias</span><span class="special">(</span><span class="identifier">shared_library</span> <span class="special">&amp;&amp;</span> lib<span class="special">,</span> 
                               <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span> name<span class="special">)</span><span class="special">;</span>
  <span class="special">}</span>
<span class="special">}</span></pre>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="doxygen.shared_library_refcountable_reference.import__class_8hpp"></a>Header &lt;<a href="http://www.boost.org/doc/libs/1_87_0/boost/dll/import_class.hpp" target="_top">boost/dll/import_class.hpp</a>&gt;</h4></div></div></div>
<p>Contains the boost::dll::experimental::import_class function for importing classes. </p>
<div class="warning"><table border="0" summary="Warning">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Warning]" src="../../../doc/src/images/warning.png"></td>
<th align="left">Warning</th>
</tr>
<tr><td align="left" valign="top"><p>Experimental feature that relies on an incomplete implementation of platform specific C++ mangling. In case of an issue provide a PR with a fix and tests to <a href="https://github.com/boostorg/dll" target="_top">https://github.com/boostorg/dll</a> . <a class="link" href="reference.html#doxygen.shared_library_refcountable_reference.import__class_8hpp" title="Header &lt;boost/dll/import_class.hpp&gt;">boost/dll/import_class.hpp</a> is not included in boost/dll.hpp </p></td></tr>
</table></div>
<p>
</p>
<pre class="synopsis"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span>
  <span class="keyword">namespace</span> <span class="identifier">dll</span> <span class="special">{</span>
    <span class="keyword">namespace</span> <span class="identifier">experimental</span> <span class="special">{</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> <span class="keyword">class</span> <a class="link" href="../doxygen/shared_library_refcountable_reference/classboost_1_1dll_1_1experimental_1_1imported__class.html" title="Class template imported_class">imported_class</a><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Args<span class="special">&gt;</span> 
        <a class="link" href="../doxygen/shared_library_refcountable_reference/classboost_1_1dll_1_1experimental_1_1imported__class.html" title="Class template imported_class">imported_class</a><span class="special">&lt;</span> <span class="identifier">T</span> <span class="special">&gt;</span> 
        <a name="doxygen.shared_library_refcountable_reference.import__class_8hpp_1ac48efc637a8099b3780d7d4e215482ef"></a><span class="identifier">import_class</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">smart_library</span> <span class="special">&amp;</span> lib<span class="special">,</span> <span class="identifier">Args</span><span class="special">...</span> args<span class="special">)</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Args<span class="special">&gt;</span> 
        <a class="link" href="../doxygen/shared_library_refcountable_reference/classboost_1_1dll_1_1experimental_1_1imported__class.html" title="Class template imported_class">imported_class</a><span class="special">&lt;</span> <span class="identifier">T</span> <span class="special">&gt;</span> 
        <a name="doxygen.shared_library_refcountable_reference.import__class_8hpp_1a2f5c867c63e69e3df842232f7b0cd80b"></a><span class="identifier">import_class</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">smart_library</span> <span class="special">&amp;</span> lib<span class="special">,</span> 
                     <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span> alias_name<span class="special">,</span> <span class="identifier">Args</span><span class="special">...</span> args<span class="special">)</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Args<span class="special">&gt;</span> 
        <a class="link" href="../doxygen/shared_library_refcountable_reference/classboost_1_1dll_1_1experimental_1_1imported__class.html" title="Class template imported_class">imported_class</a><span class="special">&lt;</span> <span class="identifier">T</span> <span class="special">&gt;</span> 
        <a name="doxygen.shared_library_refcountable_reference.import__class_8hpp_1a6b42bd1f0e156b37c871d2399e020aa7"></a><span class="identifier">import_class</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">smart_library</span> <span class="special">&amp;</span> lib<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> size<span class="special">,</span> 
                     <span class="identifier">Args</span><span class="special">...</span> args<span class="special">)</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Args<span class="special">&gt;</span> 
        <a class="link" href="../doxygen/shared_library_refcountable_reference/classboost_1_1dll_1_1experimental_1_1imported__class.html" title="Class template imported_class">imported_class</a><span class="special">&lt;</span> <span class="identifier">T</span> <span class="special">&gt;</span> 
        <a name="doxygen.shared_library_refcountable_reference.import__class_8hpp_1a64977b6ffe802cc722edcd10cb4b5bee"></a><span class="identifier">import_class</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">smart_library</span> <span class="special">&amp;</span> lib<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> size<span class="special">,</span> 
                     <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span> alias_name<span class="special">,</span> <span class="identifier">Args</span><span class="special">...</span> args<span class="special">)</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Args<span class="special">&gt;</span> 
        <a class="link" href="../doxygen/shared_library_refcountable_reference/classboost_1_1dll_1_1experimental_1_1imported__class.html" title="Class template imported_class">imported_class</a><span class="special">&lt;</span> <span class="identifier">T</span> <span class="special">&gt;</span> <a class="link" href="../doxygen/shared_library_refcountable_reference/import__class_8hpp_1a430699dfbe70d95b10f3d968268c7045.html" title="Function template import_class"><span class="identifier">import_class</span></a><span class="special">(</span><span class="identifier">smart_library</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span><span class="special">,</span> <span class="identifier">Args</span><span class="special">...</span><span class="special">)</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Args<span class="special">&gt;</span> 
        <a class="link" href="../doxygen/shared_library_refcountable_reference/classboost_1_1dll_1_1experimental_1_1imported__class.html" title="Class template imported_class">imported_class</a><span class="special">&lt;</span> <span class="identifier">T</span> <span class="special">&gt;</span> <a name="doxygen.shared_library_refcountable_reference.import__class_8hpp_1aaa3ed7c21a979abbf2729f44c8a9e70e"></a><span class="identifier">import_class</span><span class="special">(</span><span class="identifier">smart_library</span> lib<span class="special">,</span> <span class="identifier">Args</span><span class="special">...</span> args<span class="special">)</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Args<span class="special">&gt;</span> 
        <a class="link" href="../doxygen/shared_library_refcountable_reference/classboost_1_1dll_1_1experimental_1_1imported__class.html" title="Class template imported_class">imported_class</a><span class="special">&lt;</span> <span class="identifier">T</span> <span class="special">&gt;</span> 
        <a name="doxygen.shared_library_refcountable_reference.import__class_8hpp_1aaff4829b51078ac06a32ffa093cb89da"></a><span class="identifier">import_class</span><span class="special">(</span><span class="identifier">smart_library</span> lib<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span> alias_name<span class="special">,</span> 
                     <span class="identifier">Args</span><span class="special">...</span> args<span class="special">)</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Args<span class="special">&gt;</span> 
        <a class="link" href="../doxygen/shared_library_refcountable_reference/classboost_1_1dll_1_1experimental_1_1imported__class.html" title="Class template imported_class">imported_class</a><span class="special">&lt;</span> <span class="identifier">T</span> <span class="special">&gt;</span> 
        <a name="doxygen.shared_library_refcountable_reference.import__class_8hpp_1a3d8eec618d53cb2c988149826aa8fd89"></a><span class="identifier">import_class</span><span class="special">(</span><span class="identifier">smart_library</span> lib<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> size<span class="special">,</span> 
                     <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span> alias_name<span class="special">,</span> <span class="identifier">Args</span><span class="special">...</span> args<span class="special">)</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Args<span class="special">&gt;</span> 
        <a class="link" href="../doxygen/shared_library_refcountable_reference/classboost_1_1dll_1_1experimental_1_1imported__class.html" title="Class template imported_class">imported_class</a><span class="special">&lt;</span> <span class="identifier">T</span> <span class="special">&gt;</span> 
        <a name="doxygen.shared_library_refcountable_reference.import__class_8hpp_1af80131e4b992067db8349324481369ca"></a><span class="identifier">import_class</span><span class="special">(</span><span class="identifier">smart_library</span> lib<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span> alias_name<span class="special">,</span> 
                     <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> size<span class="special">,</span> <span class="identifier">Args</span><span class="special">...</span> args<span class="special">)</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Args<span class="special">&gt;</span> 
        <a class="link" href="../doxygen/shared_library_refcountable_reference/classboost_1_1dll_1_1experimental_1_1imported__class.html" title="Class template imported_class">imported_class</a><span class="special">&lt;</span> <span class="identifier">T</span> <span class="special">&gt;</span> <a name="doxygen.shared_library_refcountable_reference.import__class_8hpp_1a0f1a2923d1d1b21ae6eaa6a491e8fbb5"></a><span class="identifier">import_class</span><span class="special">(</span><span class="identifier">smart_library</span> <span class="special">&amp;</span> lib<span class="special">,</span> <span class="identifier">Args</span><span class="special">...</span> args<span class="special">)</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Args<span class="special">&gt;</span> 
        <a class="link" href="../doxygen/shared_library_refcountable_reference/classboost_1_1dll_1_1experimental_1_1imported__class.html" title="Class template imported_class">imported_class</a><span class="special">&lt;</span> <span class="identifier">T</span> <span class="special">&gt;</span> 
        <a name="doxygen.shared_library_refcountable_reference.import__class_8hpp_1a93a00db7695480355981d3de990b7db0"></a><span class="identifier">import_class</span><span class="special">(</span><span class="identifier">smart_library</span> <span class="special">&amp;</span> lib<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span> alias_name<span class="special">,</span> 
                     <span class="identifier">Args</span><span class="special">...</span> args<span class="special">)</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Args<span class="special">&gt;</span> 
        <a class="link" href="../doxygen/shared_library_refcountable_reference/classboost_1_1dll_1_1experimental_1_1imported__class.html" title="Class template imported_class">imported_class</a><span class="special">&lt;</span> <span class="identifier">T</span> <span class="special">&gt;</span> 
        <a name="doxygen.shared_library_refcountable_reference.import__class_8hpp_1af1133ebb4e13306d8d4b534668409ac2"></a><span class="identifier">import_class</span><span class="special">(</span><span class="identifier">smart_library</span> <span class="special">&amp;</span> lib<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> size<span class="special">,</span> <span class="identifier">Args</span><span class="special">...</span> args<span class="special">)</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Args<span class="special">&gt;</span> 
        <a class="link" href="../doxygen/shared_library_refcountable_reference/classboost_1_1dll_1_1experimental_1_1imported__class.html" title="Class template imported_class">imported_class</a><span class="special">&lt;</span> <span class="identifier">T</span> <span class="special">&gt;</span> 
        <a name="doxygen.shared_library_refcountable_reference.import__class_8hpp_1a0b5fe187ef7112aaf928b9f1a1e8401f"></a><span class="identifier">import_class</span><span class="special">(</span><span class="identifier">smart_library</span> <span class="special">&amp;</span> lib<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> size<span class="special">,</span> 
                     <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span> alias_name<span class="special">,</span> <span class="identifier">Args</span><span class="special">...</span> args<span class="special">)</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Args<span class="special">&gt;</span> 
        <a class="link" href="../doxygen/shared_library_refcountable_reference/classboost_1_1dll_1_1experimental_1_1imported__class.html" title="Class template imported_class">imported_class</a><span class="special">&lt;</span> <span class="identifier">T</span> <span class="special">&gt;</span> 
        <a name="doxygen.shared_library_refcountable_reference.import__class_8hpp_1a02b489303ac790d571accb2bd85272d4"></a><span class="identifier">import_class</span><span class="special">(</span><span class="identifier">smart_library</span> <span class="special">&amp;</span> lib<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span> alias_name<span class="special">,</span> 
                     <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> size<span class="special">,</span> <span class="identifier">Args</span><span class="special">...</span> args<span class="special">)</span><span class="special">;</span>
    <span class="special">}</span>
  <span class="special">}</span>
<span class="special">}</span></pre>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="doxygen.shared_library_refcountable_reference.import__mangled_8hpp"></a>Header &lt;<a href="http://www.boost.org/doc/libs/1_87_0/boost/dll/import_mangled.hpp" target="_top">boost/dll/import_mangled.hpp</a>&gt;</h4></div></div></div>
<p>Contains the <a class="link" href="../doxygen/shared_library_refcountable_reference/import__mangled_8hpp_1a5045a8a4b95fdf8fb85a993c5eb87113.html" title="Function template import_mangled">boost::dll::experimental::import_mangled</a> function for importing mangled symbols. </p>
<div class="warning"><table border="0" summary="Warning">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Warning]" src="../../../doc/src/images/warning.png"></td>
<th align="left">Warning</th>
</tr>
<tr><td align="left" valign="top"><p>Experimental feature that relies on an incomplete implementation of platform specific C++ mangling. In case of an issue provide a PR with a fix and tests to <a href="https://github.com/boostorg/dll" target="_top">https://github.com/boostorg/dll</a> . <a class="link" href="reference.html#doxygen.shared_library_refcountable_reference.import__mangled_8hpp" title="Header &lt;boost/dll/import_mangled.hpp&gt;">boost/dll/import_mangled.hpp</a> is not included in boost/dll.hpp </p></td></tr>
</table></div>
<p>
</p>
<pre class="synopsis"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span>
  <span class="keyword">namespace</span> <span class="identifier">dll</span> <span class="special">{</span>
    <span class="keyword">namespace</span> <span class="identifier">experimental</span> <span class="special">{</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span> <span class="special">...</span> Args<span class="special">&gt;</span> 
        <span class="identifier">result_type</span> <a class="link" href="../doxygen/shared_library_refcountable_reference/import__mangled_8hpp_1a5045a8a4b95fdf8fb85a993c5eb87113.html" title="Function template import_mangled"><span class="identifier">import_mangled</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span> <span class="special">*</span><span class="special">,</span> 
                                   <span class="identifier">load_mode</span><span class="special">::</span><span class="identifier">type</span> <span class="special">=</span> <span class="identifier">load_mode</span><span class="special">::</span><span class="identifier">default_mode</span><span class="special">)</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span> <span class="special">...</span> Args<span class="special">&gt;</span> 
        <span class="identifier">result_type</span> <a name="doxygen.shared_library_refcountable_reference.import__mangled_8hpp_1aa3366227bfe9213513a45ba940a338f2"></a><span class="identifier">import_mangled</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">dll</span><span class="special">::</span><span class="identifier">fs</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&amp;</span> lib<span class="special">,</span> 
                                   <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span> name<span class="special">,</span> 
                                   <span class="identifier">load_mode</span><span class="special">::</span><span class="identifier">type</span> mode <span class="special">=</span> <span class="identifier">load_mode</span><span class="special">::</span><span class="identifier">default_mode</span><span class="special">)</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span> <span class="special">...</span> Args<span class="special">&gt;</span> 
        <span class="identifier">result_type</span> <a name="doxygen.shared_library_refcountable_reference.import__mangled_8hpp_1a48dbcc1bdaf102c35c07b06b45a05d88"></a><span class="identifier">import_mangled</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">smart_library</span> <span class="special">&amp;</span> lib<span class="special">,</span> 
                                   <span class="keyword">const</span> <span class="keyword">char</span> <span class="special">*</span> name<span class="special">)</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span> <span class="special">...</span> Args<span class="special">&gt;</span> 
        <span class="identifier">result_type</span> <a name="doxygen.shared_library_refcountable_reference.import__mangled_8hpp_1a5682658ccd542c9e6564eb73951f2230"></a><span class="identifier">import_mangled</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">smart_library</span> <span class="special">&amp;</span> lib<span class="special">,</span> 
                                   <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span> name<span class="special">)</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span> <span class="special">...</span> Args<span class="special">&gt;</span> 
        <span class="identifier">result_type</span> <a name="doxygen.shared_library_refcountable_reference.import__mangled_8hpp_1aada32d96f679397b495057c545d95b52"></a><span class="identifier">import_mangled</span><span class="special">(</span><span class="identifier">smart_library</span> <span class="special">&amp;&amp;</span> lib<span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span> <span class="special">*</span> name<span class="special">)</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span> <span class="special">...</span> Args<span class="special">&gt;</span> 
        <span class="identifier">result_type</span> <a name="doxygen.shared_library_refcountable_reference.import__mangled_8hpp_1ad5770c4510dab5ca50de27e777346efc"></a><span class="identifier">import_mangled</span><span class="special">(</span><span class="identifier">smart_library</span> <span class="special">&amp;&amp;</span> lib<span class="special">,</span> 
                                   <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span> name<span class="special">)</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span> <span class="special">...</span> Args<span class="special">&gt;</span> 
        <span class="identifier">result_type</span> <a name="doxygen.shared_library_refcountable_reference.import__mangled_8hpp_1a88555cc726db5b69e62de13192013ae1"></a><span class="identifier">import_mangled</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">shared_library</span> <span class="special">&amp;</span> lib<span class="special">,</span> 
                                   <span class="keyword">const</span> <span class="keyword">char</span> <span class="special">*</span> name<span class="special">)</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span> <span class="special">...</span> Args<span class="special">&gt;</span> 
        <span class="identifier">result_type</span> <a name="doxygen.shared_library_refcountable_reference.import__mangled_8hpp_1ab22fd46150527bd96e1659aefdde6b2c"></a><span class="identifier">import_mangled</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">shared_library</span> <span class="special">&amp;</span> lib<span class="special">,</span> 
                                   <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span> name<span class="special">)</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span> <span class="special">...</span> Args<span class="special">&gt;</span> 
        <span class="identifier">result_type</span> <a name="doxygen.shared_library_refcountable_reference.import__mangled_8hpp_1a0f32f6c453ce5f2f4e1f88e1c22ba300"></a><span class="identifier">import_mangled</span><span class="special">(</span><span class="identifier">shared_library</span> <span class="special">&amp;&amp;</span> lib<span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span> <span class="special">*</span> name<span class="special">)</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span> <span class="special">...</span> Args<span class="special">&gt;</span> 
        <span class="identifier">result_type</span> <a name="doxygen.shared_library_refcountable_reference.import__mangled_8hpp_1a66a0ca295e0ec428c8a319e4e304fbe9"></a><span class="identifier">import_mangled</span><span class="special">(</span><span class="identifier">shared_library</span> <span class="special">&amp;&amp;</span> lib<span class="special">,</span> 
                                   <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span> name<span class="special">)</span><span class="special">;</span>
    <span class="special">}</span>
  <span class="special">}</span>
<span class="special">}</span></pre>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2014 Renato Tegon Forti, Antony Polukhin<br>Copyright © 2015 Antony Polukhin<br>Copyright © 2016 Antony Polukhin, Klemens Morgenstern<br>Copyright © 2017-2025 Antony
      Polukhin<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
      </p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="missuses.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../boost_dll.html"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../doxygen/shared_library_reference/alias_8hpp_1a999436ae51109c6cfdd49fa776c9ca2e.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
